﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="importacion_csv.aspx.cs" Inherits="TICsiraap.importacion_csv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="TicDiseno.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            text-align: left;
            width: 350px;
        }
        .style2
        {
            width: 200px;
            height: 60px;
            float: left;
        }
        .style4
        {
            font-family: Arial;
            color: #FFFFFF;
        }
        .style5
        {
            font-family: Arial;
            color: #FFFFFF;
            font-size: small;
        }
        .style6
        {
            text-decoration: none;
        }
        .style8
        {
            color: #000000;
        }
        .style9
        {
            font-family: Arial;
            color: #FFFFFF;
            font-weight: normal;
        }
        .style10
        {
            color: #FFFFFF;
        }
        .auto-style34 {
            width: 26px;
            height: 71px;
        }
        .auto-style29 {
            width: 492px;
            height: 71px;
        }
        .auto-style35 {
            width: 93px;
            height: 71px;
        }
        .auto-style1 {
            width: 26px;
        }
        .auto-style2 {
            width: 492px;
        }
        .auto-style3 {
            width: 93px;
        }
        .auto-style4 {
            width: 26px;
            height: 39px;
        }
        .auto-style5 {
            width: 492px;
            height: 39px;
        }
        .auto-style6 {
            width: 135px;
            height: 39px;
        }
        .auto-style26 {
            width: 26px;
            height: 33px;
        }
        .auto-style22 {
            width: 53px;
            height: 33px;
        }
        .auto-style24 {
            width: 135px;
            height: 33px;
        }
        .auto-style27 {
            width: 93px;
            height: 33px;
        }
        .auto-style28 {
            height: 33px;
        }
        .auto-style30 {
            width: 26px;
            height: 36px;
        }
        .auto-style33 {
            height: 36px;
        }
        .auto-style32 {
            width: 93px;
            height: 36px;
        }
        .auto-style12 {
            width: 26px;
            height: 37px;
        }
        .auto-style13 {
            width: 492px;
            height: 37px;
        }
        .auto-style14 {
            width: 93px;
            height: 37px;
        }
        .auto-style40 {
            width: 408px;
            height: 33px;
        }
        .auto-style41 {
            width: 26px;
            height: 81px;
        }
        .auto-style42 {
            width: 492px;
            height: 81px;
        }
        .auto-style43 {
            width: 93px;
            height: 81px;
        }
        .auto-style44 {
            width: 509px;
            height: 36px;
        }
        .auto-style45 {
            width: 408px;
            height: 39px;
        }
        .auto-style46 {
            width: 436px;
            height: 36px;
        }
        .auto-style47 {
            width: 26px;
            height: 23px;
        }
        .auto-style48 {
            width: 408px;
            height: 23px;
        }
        .auto-style49 {
            width: 53px;
            height: 23px;
        }
        .auto-style50 {
            width: 135px;
            height: 23px;
        }
        .auto-style51 {
            height: 23px;
        }
        .auto-style52 {
            width: 93px;
            height: 23px;
        }
        .auto-style53 {
            width: 26px;
            height: 22px;
        }
        .auto-style54 {
            width: 408px;
            height: 22px;
        }
        .auto-style55 {
            width: 53px;
            height: 22px;
        }
        .auto-style56 {
            width: 135px;
            height: 22px;
        }
        .auto-style57 {
            height: 22px;
        }
        .auto-style58 {
            width: 93px;
            height: 22px;
        }
        .auto-style59 {
            width: 26px;
            height: 97px;
        }
        .auto-style60 {
            width: 492px;
            height: 97px;
        }
        .auto-style61 {
            width: 93px;
            height: 97px;
        }
        .auto-style62 {
            width: 492px;
            height: 36px;
        }
        .auto-style63 {
            width: 516px;
            height: 23px;
        }
        .auto-style64 {
            width: 516px;
            height: 22px;
        }
        .auto-style65 {
            width: 516px;
            height: 33px;
        }
        .auto-style66 {
            width: 516px;
            height: 39px;
        }
        .auto-style67 {
            width: 135px;
            height: 36px;
        }
        .auto-style68 {
            font-family: Arial;
            color: #FFFFFF;
            width: 275px;
        }
        .auto-style70 {
            font-family: Arial;
            color: #FFFFFF;
            width: 228px;
        }
        .auto-style71 {
            font-family: Arial;
            color: #FFFFFF;
            width: 251px;
        }
    </style>
</head>
<body style="background-color:#d5d5d5">
    <form id="form1" runat="server" enctype="multipart/form-data">
        <div id="contenedor">
            <div id="cabecera">
                <table style="width: 100%; height: 66px;">
                    <tr>
                        <td class="style1">
                            <img alt="ut" class="style2" 
                                src="imagenes/logo1.png" /></td>
                        <td>
                            <img alt="ut2" class="style2" style="float:right" 
                                src="imagenes/logo2.png" /></td>
                    </tr>
                </table>
            </div>

            <div id="menu">
                <table style="width:100%; height: 25px;">
                    <tr>
                        <td class="style9">
                            <a class="style6" href="login.aspx"><span class="style10">Accede!</span></a></td>
                        <td class="auto-style68">
                            <strong><a class="style6" href="registro_asistencia.aspx"><span class="style10">Registro de Asistencia</span></a></strong></td>
                        <td class="auto-style70">
                            <strong><a class="style6" href="reporte.aspx"><span class="style10">Reportes</span></a></strong></td>
                            <td class="auto-style71">
                                <strong><a class="style6" href="importacion_csv.aspx"><span class="style10" style="width: 310px">Importacion CSV</span></a></strong></td>
                    </tr>
                   
                </table>
            </div>

            <div id="contenido">

                <div id="importacionCSV">
                <table style="width:92px;">
                    <tr>
                        <td>
                            </td>
                    </tr>
                </table>
                <table style="width: 641px">
                    <tr>
                        <td class="auto-style34"></td>
                        <td class="auto-style29" colspan="7">
                            <asp:Label ID="Label3" runat="server" Font-Bold="False" Font-Italic="True" Font-Size="Medium" ForeColor="#CC0000" Height="16px" Width="498px">IMPORTANTE: al cargar el archivo CSV, se borrará la información importada con anterioridad en el Año y Cuatrimestre Indicado.</asp:Label>
                        </td>
                        <td class="auto-style35"></td>
                    </tr>
                    <tr>
                        <td class="auto-style59"></td>
                        <td class="auto-style60" colspan="7">
                            <asp:FileUpload ID="FileUpload1" runat="server" Height="29px" Width="470px" />
                            <br />
                            Profesores<br />
                            <asp:FileUpload ID="FileUploadProfesores" runat="server" Height="29px" Width="470px" />
                            <br />
                            Asignaturas<br />
                            <asp:FileUpload ID="FileUploadAsignaturas" runat="server" Height="29px" Width="470px" />
                            <br />
                        </td>
                        <td class="auto-style61"></td>
                    </tr>
                    <tr>
                        <td class="auto-style4"></td>
                        <td class="auto-style45" colspan="0">
                            <asp:Button ID="btnSubir" runat="server" Height="28px" OnClick="btnSubir_Click" Text="Mostrar Datos CSV" Width="136px" />
                        </td>
                        <td class="auto-style5" colspan="3">
                            <asp:Button ID="btnSubirProfesores" runat="server" Height="28px" OnClick="btnSubirProfesores_Click" Text="Mostrar Datos Profesores" Width="176px" />
                        </td>
                        <td class="auto-style66" colspan="0">
                            <asp:Button ID="btnSubirAsignaturas" runat="server" Height="28px" OnClick="btnSubirAsignaturas_Click" Text="Mostrar Datos Asignaturas" Width="177px" />
                        </td>
                        <td class="auto-style6"></td>
                    </tr>
                    <tr>
                        <td class="auto-style30"></td>
                        <td class="auto-style44" colspan="2">
                            <asp:Label ID="Label1" runat="server" Font-Italic="True" Font-Size="XX-Small" ForeColor="#009900" Height="100px" style="margin-bottom: 14px; margin-right: 0px;" Width="208px" BorderWidth="1px"></asp:Label>
                        </td>
                        <td class="auto-style46" colspan="0">
                            <asp:Label ID="LabelProfesores" runat="server" Font-Italic="True" Font-Size="XX-Small" ForeColor="#009900" Height="100px" style="margin-bottom: 14px" Width="203px" BorderWidth="1px"></asp:Label>
                        </td>
                        <td class="auto-style62" colspan="2">
                            <asp:Label ID="LabelAsignaturas" runat="server" Font-Italic="True" Font-Size="XX-Small" ForeColor="#009900" Height="100px" style="margin-bottom: 14px" Width="210px" BorderWidth="1px"></asp:Label>
                        </td>
                        <td class="auto-style67"></td>
                    </tr>
                    <tr>
                        <td class="auto-style47"></td>
                        <td class="auto-style48">
                            <asp:Label ID="lblAnio" runat="server" ForeColor="#666666" Text="Año                     "></asp:Label>
                        </td>
                        <td class="auto-style49" colspan="3">
                            <asp:TextBox ID="txtAnio" runat="server" style="margin-left: 0px" Width="125px"></asp:TextBox>
                        </td>
                        <td class="auto-style63">
                        </td>
                        <td class="auto-style50">
                        </td>
                        <td class="auto-style51">
                        </td>
                        <td class="auto-style52"></td>
                    </tr>
                    <tr>
                        <td class="auto-style53"></td>
                        <td class="auto-style54">
                            <asp:Label ID="lblCuatrimestre" runat="server" ForeColor="#666666" Text="Cuatrimestre"></asp:Label>
                        </td>
                        <td class="auto-style55" colspan="3">
                            <asp:TextBox ID="txtCuatrimestre" runat="server" style="margin-left: 0px" Height="16px" Width="126px"></asp:TextBox>
                        </td>
                        <td class="auto-style64">
                        </td>
                        <td class="auto-style56">
                        </td>
                        <td class="auto-style57">
                        </td>
                        <td class="auto-style58"></td>
                    </tr>
                    <tr>
                        <td class="auto-style26"></td>
                        <td class="auto-style40">
                            <asp:Button ID="btnCargar" runat="server" Height="28px" OnClick="btnCargar_Click" style="text-align: left" Text="Cargar CSV" Width="98px" />
                        </td>
                        <td class="auto-style22" colspan="3">
                            <asp:Button ID="btnCargarProf" runat="server" Height="28px" OnClick="btnCargarProfesores_Click" style="text-align: left" Text="Cargar Profesores" Width="138px" />
                        </td>
                        <td class="auto-style65" align="right">
                            <asp:Button ID="btnCargarProf0" runat="server" Height="28px" OnClick="btnCargarAsignaturas_Click" style="text-align: left" Text="Cargar Asignaturas" Width="138px" />
                        </td>
                        <td class="auto-style24"></td>
                        <td class="auto-style28"></td>
                        <td class="auto-style27"></td>
                    </tr>
                    <tr>
                        <td class="auto-style30"></td>
                        <td class="auto-style33" colspan="7">
                            &nbsp;</td>
                        <td class="auto-style32"></td>
                    </tr>
                    <tr>
                        <td class="auto-style1">&nbsp;</td>
                        <td class="auto-style2" colspan="7">
                            <asp:Label ID="Label2" runat="server" Font-Size="Smaller" ForeColor="#404040" Height="16px" Visible="False" Width="417px"></asp:Label>
                        </td>
                        <td class="auto-style3">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style41"></td>
                        <td class="auto-style42" colspan="7">
                            <asp:GridView ID="GridView1" runat="server" Font-Size="XX-Small" Width="652px">
                            </asp:GridView>
                        </td>
                        <td class="auto-style43"></td>
                    </tr>
                    <tr>
                        <td class="auto-style12"></td>
                        <td class="auto-style13" colspan="7">Profesores<br />
                            <asp:Label ID="LabelProfesoresTabla" runat="server" Font-Size="Smaller" ForeColor="#404040" Height="16px" Visible="False" Width="650px"></asp:Label>
                            <asp:GridView ID="GridViewProfesores" runat="server" Font-Size="XX-Small" Width="652px">
                            </asp:GridView>
                        </td>
                        <td class="auto-style14"></td>
                    </tr>
                    <tr>
                        <td class="auto-style1">&nbsp;</td>
                        <td class="auto-style2" colspan="7">Asignaturas<br />
                            <asp:Label ID="LabelAsignaturasTabla" runat="server" Font-Size="Smaller" ForeColor="#404040" Height="16px" Visible="False" Width="642px"></asp:Label>
                            <asp:GridView ID="GridViewAsignaturas" runat="server" Font-Size="XX-Small" Width="652px">
                            </asp:GridView>
                        </td>
                        <td class="auto-style3">&nbsp;</td>
                    </tr>
                </table>
                    </div>
              
            </div>

            <div id="pie" class="style5" >
                <strong>Tecnologias De La Informacion y La Comunicacion - UTH.</strong></div>
        
        </div>


    </form>
</body>
</html>
